package com.lotusyu.share;

import com.lotusyu.share.service.Serviceable;

public class ApiCtrl {

    private BeanFactory beanFactory;

    private ServiceFactory serviceFactory;

    public void api(String event){
        int code = 0;
        Serviceable service = serviceFactory.getService(code);
        service.onEvent(event,result->{
            //write to httpresponse
        });
    }


}
